<template>
	<view class="page">
		<nav-header title="成员与部门" custom-nav></nav-header>
		<!-- <view v-if="currentPath.length > 1" class="menu-item" @click="goBack">...返回上一级</view>
		<view class="menu-container" v-for="(item, index) in currentMenuItems" :key="index">
			<view class="menu-item" @click="navigateTo(item)">
				{{ item.name }}
				<uni-icons v-if="item.children && item.children.length > 0" type="right" class="arrow"></uni-icons>
			</view>
		</view>
		<view v-if="currentEmployees.length > 0" class="employee-list">
			<view class="employee-item" v-for="(employee, index) in currentEmployees" :key="index">
				<image :src="employee.image" class="employee-image"></image>
				<view class="employee-name">{{ employee.name }}</view>
			</view>
		</view> -->
		<StructurePanel :companyId="companyId" />
	</view>
</template>

<script setup>
	import StructurePanel from './components/structure-panel'
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import {
		ref
	} from 'vue';
	const companyId = ref()
	onLoad((options) => {
		companyId.value = parseInt(options.companyId)
	})
</script>